package com.waijiaojun.tpo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.waijiaojun.tpo.utils.Util;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by Peter on 2018/1/30.
 */
public class Category {
    private Long id;//                   bigint not null auto_increment,
    private String name_cn;//                 varchar(255),
    private String name_en;//                 varchar(255),
    private String description;//          varchar(255),
    private String scenarioSize;// 小关卡的数量，场景数
    private String cover_url;//
    private String video_url;//

    @JsonIgnore
    private MultipartFile coverFile;
    @JsonIgnore
    private MultipartFile videoFile;

    public MultipartFile getCoverFile() {
        return coverFile;
    }

    public void setCoverFile(MultipartFile coverFile) {
        this.coverFile = coverFile;
    }

    public MultipartFile getVideoFile() {
        return videoFile;
    }

    public void setVideoFile(MultipartFile videoFile) {
        this.videoFile = videoFile;
    }

    public String getCover_url() {
        return Util.toFullOssUrl(cover_url);
    }

    public void setCover_url(String cover_url) {
        this.cover_url = cover_url;
    }

    public String getVideo_url() {
        return Util.toFullOssUrl(video_url);
    }

    public void setVideo_url(String video_url) {
        this.video_url = video_url;
    }

    public String getName_en() {
        return name_en;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    public String getScenarioSize() {
        return scenarioSize;
    }

    public void setScenarioSize(String scenarioSize) {
        this.scenarioSize = scenarioSize;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName_cn() {
        return name_cn;
    }

    public void setName_cn(String name_cn) {
        this.name_cn = name_cn;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
